package com.auction.job.web.listener;

import com.auction.job.core.schedule.QuartzManager;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;


public class StartUpListener implements ServletContextListener {
    private static final Logger LOG = LoggerFactory.getLogger(StartUpListener.class);

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        LOG.info("server is starting...");
        QuartzManager.startSystemJob();
        LOG.info("server started!");
    }


    @Override
    public void contextDestroyed(ServletContextEvent sce) {
    }

}
